package cn.csc.module.shoppingCard.controller.admin.points.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 购物卡积分 Excel 导出 Request VO", description = "参数和 CardPointsPageReqVO 是一致的")
@Data
public class CardPointsExportReqVO {

    @ApiModelProperty(value = "关联的卡号")
    private BigInteger cardId;

    @ApiModelProperty(value = "积分变动值（正负区分增减）")
    private Integer points;

    @ApiModelProperty(value = "来源（1-消费返积分，2-活动赠送，3-管理员调整）")
    private Byte source;

    @ApiModelProperty(value = "积分过期时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expireTime;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
